<%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="engineer.clientapp.tools.ShowAutomats"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="engineer.clientapp.beans.User" %>

<%
User user=(User)session.getAttribute("user");

%>
<%if (session.getAttribute("user") == null) {%>
<h1>Brak dostępu do tej strony!</h1>
<%}else{ %>
<h2>Automaty</h2>

<div id="gallery_container">
<ul id="lista">
<%
	ArrayList<String> ads = ShowAutomats.showAutomats();
	for (int k = 0; k < ads.size(); k++) {
%>
<%=ads.get(k)%>
<%
	}
%>
</ul>
</div>
<script	src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js'></script>
<script type="text/javascript" src="js/showHide.js">

</script>

<%}%>